import { IPSSubViewType } from './ipssub-view-type';
import { PSModelObjectImpl } from '../psmodel-object-impl';

export class PSSubViewTypeImpl extends PSModelObjectImpl implements IPSSubViewType {
  get codeName(): string {
    return this.M.codeName;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  get nameMode(): 'APPEND' | 'REPLACE' {
    return this.M.nameMode;
  }

  get typeCode(): string {
    return this.M.typeCode;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }

  get viewModel(): IModel {
    return this.M.viewModel;
  }

  get extendStyleOnly(): boolean {
    return this.M.extendStyleOnly != null ? this.M.extendStyleOnly : false;
  }

  get replaceDefault(): boolean {
    return this.M.replaceDefault != null ? this.M.replaceDefault : false;
  }

  get cls(): string {
    return 'PSSubViewTypeImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'res.IPSSubViewType') return true;
    return super.instanceof(cls);
  }
}
